package com.dkts.oil.web.vo.response.subReq;

import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "路线规划的点集合")
public class PathPoints {
    @Schema(description  = "距离，单位米" ,example = "12")
    private Double distance;

    @Schema(description  = "耗时，单位秒" ,example = "12")
    private Long time;

    @Schema(description  = "点集合" )
    private List<Points> points;

//    @Schema(description  = "详情" )
//    private JSONObject details;

}

@Schema(description = "路线规划的点集合")
@Data
class  Points{
    @Schema(description  = "类型" ,example = "LineString")
    private String type;
    @Schema(description  = "经纬度" ,example = "[[116.602193434,40.1440008202]]")
    private List<Double> coordinates;
}

